From 72a8b58580e9da6768fa1b3e809ee5d4b56f6a4f Mon Sep 17 00:00:00 2001 From: OpenJDK Team Date: Thu, 24 Sep 2026 19:52:19 +1200 Subject: [PATCH] zero-alpha-workaround Gbp-Pq: Name zero-alpha-workaround.diff --- src/hotspot/os/linux/os_linux.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp index 4469e7d26..ba6d57dc8 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -3119,6 +3119,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size, bool exec, // Note that the value for MAP_FIXED_NOREPLACE differs between architectures, but all architectures // supported by OpenJDK share the same flag value. #define MAP_FIXED_NOREPLACE_value 0x100000 +// on ALPHA, that triggers with 0x1000000 == 0x100000. why? +#if defined(ALPHA) && defined(MAP_FIXED_NOREPLACE) +#undef MAP_FIXED_NOREPLACE +#endif #ifndef MAP_FIXED_NOREPLACE #define MAP_FIXED_NOREPLACE MAP_FIXED_NOREPLACE_value #else -- 2.39.5